package com.tjbklx1.thread.chap06.demo01;

public class Test {
	
	public static void main(String[] args) {
		Data data = new Data(10);
		new ReadThread(data).start();
		new ReadThread(data).start();
		new ReadThread(data).start();
		new ReadThread(data).start();
		new ReadThread(data).start();
		new ReadThread(data).start();
		
		new WriteThread(data, "ABCDEFG").start();
		new WriteThread(data, "hijklmn").start();
	}
}
